<?php
	if (count($outcomes) > 0) { ?>
	<table cellpadding="5" cellspacing="0" border="1">
		<tr>
			<th>ID</th>
			<th>Name</th>
			<th>Delete</th>
		</tr>
		<?php foreach($outcomes as $outcome) { ?>
			<tr>
				<td><?php echo $outcome->id; ?></td>
				<td><?php echo $outcome->name; ?></td>
				<td><a href="<?php 
				$url = 'outcome/deleteoutcome/' . $outcome->id;
				echo site_url("$url"); ?>">Delete</a></td>
			</tr>
		<?php } ?>
	</table>
	<?php }else{ ?>
		No hay campos para mostrar
	<?php }?>
		
	<br />
	   
	<a href="<?php echo site_url('outcome/addoutcome'); ?>">New Outcome</a>